﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.PersistenceModel.NHibernate;
using System.Diagnostics.Contracts;
using System.Reflection;
using YasharEl.Infrastructure.OrgUnit.PersistanceModel.NHibernate.Repositories;

namespace YasharEl.Infrastructure.OrgUnit.PersistanceModel.NHibernate
{
    public class OrgUnitNHibernatePersistenceModelConfigurationBuilder : NHibernatePersistenceModelConfigurationBuilder
    {
        protected override IEnumerable<Assembly> EnumerateAssembliesWithHbmMappings()
        {
            return new List<Assembly>(
                new Assembly[]
                {
                    typeof(EmployeesRepository).Assembly
                }
            );
        }

        protected override IEnumerable<Assembly> EnumerateAssembliesWithFluentMappings()
        {
            return new List<Assembly>(
                new Assembly[]
                {
                    typeof(EmployeesRepository).Assembly
                }
            );
        }
    }
}
